package LambdaPMP;

public class StudentDemo {

	public static void main(String[] args) {
		useStudentBuilder((String name,int age)->{
			Student s = new Student(name,age);
			return s;
			
		});
		
		useStudentBuilder(Student::new);
		

	}

	public static void useStudentBuilder(StudentBuilder sb) {
		Student s = sb.build("吴彦祖", 22);
		System.out.println(s.getName()+","+s.getAge());
		
	}
}
